<?php

namespace app\index\validate;

use think\Validate;

class Security extends Validate
{
    protected $rule = [
        "old_password" => "require",
        "password" => "require|min:6|confirm",

    ];

    protected $message = [
        'old_password.require' => '请输入旧密码',
        'password.require' => '请输入新密码',
        'password.min' => '密码至少6位以上',
        'password.confirm' => '确认密码不相符',
    ];

}